export default [
  // user
  {
    path: '/user',
    component: '../layouts/UserLayout',
    routes: [
      { path: '/user', redirect: '/user/login' },
      { path: '/user/login', name: 'login', component: './User/Login' },
      { path: '/user/register', name: 'register', component: './User/Register' },
      {
        path: '/user/register-result',
        name: 'register.result',
        component: './User/RegisterResult',
      },
      {
        component: '404',
      },
    ],
  },
  // app
  {
    path: '/',
    component: '../layouts/BasicLayout',
    Routes: ['src/pages/Authorized'],
    routes: [
      // dashboard
      { path: '/', redirect: '/welcome' },
      {
        path: '/welcome',
        name: 'home',
        icon: 'home',
        component: './Welcome/index',
      },
      // list
      // {
      //   path: '/list',
      //   icon: 'table',
      //   name: 'list',
      //   routes: [
      //     {
      //       path: '/list/table-list',
      //       name: 'searchtable',
      //       component: './List/TableList',
      //     },
      //     {
      //       path: '/list/basic-list',
      //       name: 'basiclist',
      //       component: './List/BasicList',
      //     },
      //   ],
      // },
      {
        path: '/huanzheguanli',
        icon: 'user',
        name: 'huanzheguanli',
        routes: [
          {
            path: '/huanzheguanli/list',
            name: 'list',
            component: './List/HuanZheList',
          },
        ],
      },
      {
        path: '/guominshi',
        icon: 'sliders',
        name: 'guominshi',
        routes: [
          {
            path: '/guominshi/list',
            name: 'list',
            component: './List/GuoMinShiList',
          },
        ],
      },
      {
        path: '/guominyuan',
        icon: 'exclamation-circle',
        name: 'guominyuan',
        routes: [
          {
            path: '/guominyuan/list',
            name: 'list',
            component: './List/GuoMinYuanList',
          },
        ],
      },
      {
        path: '/feigongneng',
        icon: 'folder',
        name: 'feigongneng',
        routes: [
          {
            path: '/feigongneng/list',
            name: 'list',
            component: './List/FeiGongNengList',
          },
        ],
      },
      {
        path: '/tuominzhen',
        icon: 'zoom-in',
        name: 'tuominzhen',
        routes: [
          {
            path: '/tuominzhen/list',
            name: 'list',
            component: './List/TuoMinZhenList',
          },
        ],
      },
      
      
      {
        component: '404',
      },
    ],
  },
];
